package com.ants.boot.wx.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

/**
 * @author 蚂蚁会花呗
 * @date 2022/6/7 14:43
 * 评论
 */
public class WxArticleComment {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 外键--评论人id
     */
    private Integer userId;

    /**
     * 外键--评论的文章id
     */
    private Long commentPrId;


    /**
     * 评论内容
     */
    private String commentText;

    /**
     * 评论时间
     */
    private LocalDateTime commentTime;

    /**
     * 回复谁的评论，如果是直接评论 为0，回复的话是回复谁的人员的id
     */
    private Integer replyId;

    /**
     * 评论所属的id，评论为0 回复为，评论的id
     */
    private Long parentId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Long getCommentPrId() {
        return commentPrId;
    }

    public void setCommentPrId(Long commentPrId) {
        this.commentPrId = commentPrId;
    }


    public String getCommentText() {
        return commentText;
    }

    public void setCommentText(String commentText) {
        this.commentText = commentText;
    }

    public LocalDateTime getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(LocalDateTime commentTime) {
        this.commentTime = commentTime;
    }

    public Integer getReplyId() {
        return replyId;
    }

    public void setReplyId(Integer replyId) {
        this.replyId = replyId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
}
